<?php
$root = realpath($_SERVER["DOCUMENT_ROOT"]) . "/SmartTuition/SmartTuition.Model"; 
// including base class, EntityWithID
require_once("$root/Models/Base/EntityWithID.php");

class Student extends EntityWithID
{
    private $vkPage;
    private $fbPage;
    private $twitterPage;
    private $userId;
    private $groupId;

    function __construct($id, $vk_page, $fb_page, $tw_page, $user_id, $group_id) {
        parent::__construct($id);
        $this->vkPage = $vk_page;
        $this->fbPage = $fb_page;
        $this->twitterPage = $tw_page;
        $this->userId = $user_id;
        $this->groupId = $group_id;
        $this->columns = "VKPage, FBPage, TwitterPage, UserID, GroupID";
    }

    public function getVKPage() {
        return $this->vkPage;
    }

    public function getFBPage() {
        return $this->fbPage;
    }

    public function getTwitterPage() {
        return $this->twitterPage;
    }

    public function getUserId() {
        return $this->userId;
    }

    public function  getGroupId() {
        return $this->groupId;
    }

    public function getValues() {
        $str = "'" . $this->vkPage .  "','" . $this->fbPage .  "','" . $this->twitterPage .  "'," . $this->userId .  "," . $this->groupId ;
        return $str;
    }
}
